#ifndef WIDGET_H
#define WIDGET_H

#include "ClavNum/clavnum.h"
#include "bucquage.h"
#include "mdpdialog.h"
#include "adminwidget.h"
#include "moduleaccueil.h"

#include <QDebug>

#include <QWidget>
#include <QtSql>
#include <QColor>
#include <QMessageBox>
#include <QDate>
#include <QListWidgetItem>
#include <QCloseEvent>
#include <QCryptographicHash>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

public slots:
    //widget.cpp
    void OuvrirBucquage(QListWidgetItem* it);


    //widget_base.cpp
    void ouvrir_base();
    //void ouvrir_base(QString fichier);
    //void creer_base();
    void fermer_base();
    void completer_structure(QSqlDatabase DB);
    //void ouvrir_recentBase();
    void majListProms(QString fam);
    void majTextEdits();

protected:
    void closeEvent(QCloseEvent *);
    bool eventFilter(QObject *obj, QEvent *event);
    
private:
    Ui::Widget *ui;
    QSqlDatabase db;


    bool tactile;
    bool gestionStocks;

    QStringList prefsBlocDroite;
    QStringList prefsBlocGauche;


private slots:

};

#endif // WIDGET_H
